import interfine from '../../utils/request'


export const reqSearchTabs = () => {
    return interfine.get('/hotWordBillboardCategory')
}

// 某个分类下的关键字列表
// ● URL：https://search.ximalaya.com/hotWordBillboard/list/2.0?categoryId={categoryId}&size={size}
export const reqHotWordBillboard = ({categoryId,size}) => {
    return interfine.get(`/hotWordBillboard/list/2.0?categoryId=${categoryId}&size=${size}`)
}

// 实时关键字列表
// https://m.ximalaya.com/revision/suggest?kw={kw}&paidFilter={paidFilter}
export const reqSuggestData = ({kw,paidFilter}) => {
    return interfine.get(`/revision/suggest?kw=${kw}&paidFilter=${paidFilter}`)
}
// 搜索结果列表
// https://m.ximalaya.com/m-revision/page/search?kw=kw&core=core&page=page&rows=rows
export const reqSearchResult = ({kw,core,page,rows}) => {
    return interfine.get(`/m-revision/page/search?kw=${kw}&core=${core}&page=${page}&rows=${rows}`)
}